package models

import (
	"gorm.io/gorm"
)

type User struct {
	gorm.Model
	Name  string `gorm:"size:100"`
	Email string `gorm:"size:255;uniqueIndex"`
}

// TableName 自定义表名
func (User) TableName() string {
	return "users"
}
